﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using A2DFramework.LogService.Configuration;
using A2DFramework.InstanceService;
using A2DFramework.LogService.LogProviders;

namespace A2DFramework.LogService
{
    public static class Starter
    {
        public static void Init()
        {
            switch (LogConfiguration.LogType)
            {
                case LogType.Queue:
                    ObjectFactory.Register<ILog, QueueLogger>();  
                    break;
                case LogType.TextFile:
                    ObjectFactory.Register<ILog, TextFileLogger>();  
                    break;
                case LogType.Udp:
                    ObjectFactory.Register<ILog, UdpLogger>();
                    break;
            }
        }
    }
}
